package com.vf.activity.domain.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vf.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ActivityParticipantsDTO {

    /** 活动ID */
    @ApiModelProperty("活动ID")
    private Long activityId;

    /** 用户ID */
    @ApiModelProperty("用户ID")
    private Long userId;

    //用户昵称
    @Excel(name = "用户昵称")
    @ApiModelProperty("用户昵称")
    private String nickname;

    //用户头像
    @Excel(name = "用户头像")
    @ApiModelProperty("用户头像")
    private String avatar;

    /** 参加活动 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("参加活动")
    @Excel(name = "参加活动", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinedAt;
}

